home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #11
/
Amiga Plus CD - 2004 - No. 11.iso
/
AmiSoft
/
Biz
/
swood
/
FW_Scripts.lha
/
FW_Scripts
/
ComplexShape
/
ObjectSave.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
2004-08-19
|
723b
|
31 lines
/* FinalWriter AREXX macro */
/* $VER: ObjectSave 1.2 */
/* Save selected object(s) to disk */
Options Results
CurrentObject
IF Result = 0 THEN DO
ShowMessage 1 0 '"No objects selected." "" "" "OK" "" ""'
EXIT
END
Copy
ADDRESS COMMAND 'RequestFile >ENV:File Title="Where to save object(s)" SAVEMODE NOICONS Pubscreen="FinalWriterPubScreen"'
IF rc ~= 0 THEN EXIT
IF OPEN("Env", "Env:File", "R") THEN DO
filename = READLN("Env")
CALL CLOSE("Env")
END
filename = STRIP(filename,'B','"')
IF EXISTS(filename) THEN DO
ShowMessage 2 0 '"Overwrite Existing File?" "" "" "Accept" "Cancel" ""'
IF result = 2 THEN EXIT
ADDRESS COMMAND 'Delete' $File
END
ADDRESS COMMAND 'Copy CLIPS:0' $File 'CLONE'